package com.zksk.admin.mapper.org;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zksk.mbg.admin.domain.Agreement;
import com.zksk.mbg.admin.domain.Org;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface OrgDao extends BaseMapper<Agreement> {

    /**
     * 查询机构编码是否唯一
     * @param orgCode
     * @return
     */
    @Select("select * from platform_org t where t.org_code = #{ orgCode }")
    Org checkOrgCodeUnique(@Param("orgCode")String orgCode);
}
